package com.seckill.act.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.seckill.act.pojo.SeckillTime;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2022-03-04
 */
public interface SeckillTimeMapper extends BaseMapper<SeckillTime> {

    @Select("select id,name,starttime,endtime,total_time totalTime,status,sort from tb_seckill_time WHERE status=1 ORDER BY sort ASC")
    List<SeckillTime> selectAllList();
}
